import { MinLength,IsInt, MaxLength,Allow,Validate } from 'class-validator';
import { DynamicEntity } from '../entity/DynamicEntity';



export class TopicModel {

    @MinLength(1,{
        message: '用户登录topic_Id参数必须有'
      })
      topic_Id!: number;
      
      @MinLength(1,{
        message: '用户登录user_Id参数必须有'
      })
      user_Id!: number;
    
      @MinLength(1,{
        message: '用户登录newDynamic_page参数必须有'
      })
      newDynamic_Page!: number;

      @MinLength(1,{
        message: '用户登录newDynamic_Count参数必须有'
      })
      newDynamic_Count!: number;


}

export class SubModel {

  @MinLength(1,{
      message: '用户登录topic_Id参数必须有'
    })
    topic_Id!: number;
  
    @MinLength(1,{
      message: '用户登录user_Id参数必须有'
    })
    user_Id!: number;
    @MinLength(1,{
      message: '用户登录isSub参数必须有'
    })
    isSub!: string;

}


export class WorkDynamicListModel {

  @MinLength(1,{
      message: '用户登录dynamic_List参数必须有'
    })
    dynamic_List!: DynamicEntity[];
  
    @MinLength(1,{
      message: '用户登录newDynamic_page参数必须有'
    })
    newDynamic_Page!: number;

    @MinLength(1,{
      message: '用户登录newDynamic_Count参数必须有'
    })
    newDynamic_Count!: number;
}


export class SearchTopicModel {

  @MinLength(1,{
      message: '用户登录topic_SearchValue参数必须有'
    })
    topic_SearchValue!: string;
  
    @MinLength(1,{
      message: '用户登录user_Id参数必须有'
    })
    user_Id!: number;

}


export class getIndexTpoic {

  @MinLength(1,{
      message: '用户登录topic_Index参数必须有'
    })
    topic_Index!: number;
  
    @MinLength(1,{
      message: '用户登录topic_Page参数必须有'
    })
    topic_Page!: number;

    @MinLength(1,{
      message: '用户登录topic_Num参数必须有'
    })
    topic_Num!: number;
    @MinLength(1,{
      message: '用户登录user_Id参数必须有'
    })
    user_Id!: number;

}